package com.dream.technology.service;

import com.dream.technology.db.entity.RcCustomerTag;
import com.dream.technology.db.entity.RcCustomerTagItem;
import com.dream.technology.db.entity.RcCustomerTagItemQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface RcCustomerTagItemService {

    int countByExample(RcCustomerTagItemQuery example);

    int deleteByExample(RcCustomerTagItemQuery example);

    int deleteByPrimaryKey(Long id);

    int insert(RcCustomerTagItem record);
    int insertList(List<RcCustomerTagItem> tagItemList);

    int insertSelective(RcCustomerTagItem record);

    List<RcCustomerTagItem> selectByExample(RcCustomerTagItemQuery example);

    RcCustomerTagItem selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") RcCustomerTagItem record, @Param("example") RcCustomerTagItemQuery example);

    int updateByExample(@Param("record") RcCustomerTagItem record, @Param("example") RcCustomerTagItemQuery example);

    int updateByPrimaryKeySelective(RcCustomerTagItem record);

    int updateByPrimaryKey(RcCustomerTagItem record);

	List<RcCustomerTag> queryCustomerTagByItem(Long customerTagItem);


    /**
     * 根据标签id 复制标签的配置项
     *
     * @param tagId 被复制的tagId
     * @param newTagId 复制出的tagId
     * @return
     */
     String copy(Long tagId, Long newTagId);

      List<RcCustomerTagItem> selectByTagId(Long tagId);


     List<RcCustomerTagItem> selectByTagIds(List<Long> tagId);





}
